package day04;

public class txt11 {
    public static void main(String[] args) {
        for (int num=100000 ; num<=999999  ; num++  ){
            int a=num/100000%10;
            int b=num/10000%10;
            int c=num/1000%10;
            int d=num/100%10;
            int e=num/10%10;
            int f=num/1%10;
            double g=Math.pow(a,6)+Math.pow(b,6)+Math.pow(c,6)+Math.pow(d,6)+Math.pow(e,6)+Math.pow(f,6);
            if(g==num){
                System.out.println(num);
            }

        }
    }
}
